package com.eos.orm.mybatis.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.SpeeCustMonthReportMapper;
import com.eos.orm.mybatis.model.SpeeCustMonthReport;
import com.eos.orm.mybatis.model.SpeeCustMonthReportExample;
/**
 * spee_cust_month_report每月专案客户报表数据的CURD操作
 * @author sz
 *
 */
public class SpeeCustMonthReportMapperImpl extends AbstractSqlSessionFactory
		implements SpeeCustMonthReportMapper {

	public int countByExample(SpeeCustMonthReportExample example) {
		return 0;
	}

	public int deleteByExample(SpeeCustMonthReportExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(SpeeCustMonthReport record) {
		SqlSession session = sqlSessionFactory.openSession();
		try{
			SpeeCustMonthReportMapper mapper = session.getMapper(SpeeCustMonthReportMapper.class);
			mapper.insert(record);
			session.commit();
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.SpeeCustMonthReportMapperImpl.insert throws exception:"
					+ e.getMessage());
			return -1;
		}finally{
			session.close();
		}
		return 0;
	}

	public int insertSelective(SpeeCustMonthReport record) {
		return 0;
	}

	public List<SpeeCustMonthReport> selectByExample(
			SpeeCustMonthReportExample example) {
		// TODO Auto-generated method stub
		return null;
	}

	public SpeeCustMonthReport selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByExample(SpeeCustMonthReport record,
			SpeeCustMonthReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByExampleSelective(SpeeCustMonthReport record,
			SpeeCustMonthReportExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(SpeeCustMonthReport record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKeySelective(SpeeCustMonthReport record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
